package com.zzx.test.entity;

import java.io.Serializable;

// JDK16新功能
public record Dog(String name, Integer age) implements Serializable {

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
